From 670028490d511c4eceef21d706d9c11be26e0487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 8 May 2022 13:16:55 +0200 Subject: -zu to denote size_t --- ircxmpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircxmpp.c b/ircxmpp.c index 43c9206..2afaa13 100644 --- a/ircxmpp.c +++ b/ircxmpp.c @@ -783,7 +783,7 @@ int main (void) { while (1) { // note that if input config is invalid we leak memory before exiting char b[64]; // i don't free any allocated shit and just return, probably it's ok if (handles_length++) - sprintf(b, "IX_JID%d", handles_length); + sprintf(b, "IX_JID%zu", handles_length); else strcpy(b, "IX_JID"); if (!getenv(b)) { @@ -800,7 +800,7 @@ int main (void) { if (handles_length == 1) \ sprintf(b, "IX_" config); \ else \ - sprintf(b, "IX_" config "%d", handles_length); \ + sprintf(b, "IX_" config "%zu", handles_length); \ if (getenv(b)) \ ircxmpp_set_##value(handles[handles_length-1], function(getenv(b))); \ else if (required) \ -- cgit v1.2.3